﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Home.Domain.Entities
{
    /// <summary>
    /// 邀请码
    /// </summary>
    public class InviteCode
    {
        /// <summary>
        /// Id
        /// </summary>
        [DisplayName("Id")]
        public int? Id { get; set; }
        /// <summary>
        /// 邀请码
        /// </summary>
        [DisplayName("邀请码")]
        [StringLength(6,MinimumLength=6)]
        [Required]
        public string Code { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public DateTime? CreateDate { get; set; }
        public int? SalesmanId { get; set; }
        public virtual Salesman Salesman { get; set; }
    }
}
